#pragma once

#include "SceneBase.h"
#include "ui/UILoadingBar.h"

class CSceneLoading : public CSceneBase
{
public:
	CSceneLoading(void);
	virtual ~CSceneLoading(void);
	CREATE_FUNC(CSceneLoading);

	bool init() override;
	//virtual void onEnter() override;
	//virtual void onExit() override;
	//virtual void update(float delta) override;
	static void StaticLoading(float p = 5.00) { m_Percent += p; }
	void Loading(float p = 5.00);
private:
	void onLoading();
private:
	cocos2d::Node*				m_Loading;
	cocos2d::ui::LoadingBar*	m_LoadingBar;

	bool						m_Loaded;

	static float				m_Percent;
};

